/********************************************************************************
 * Copyright(c) 2020-2025 VINCENT_WY All rights reserved.
 * - Filename
 * - Author  Vincent
 * - Version V1.0.0
 * - Date    2023/09/21
 * - Brief
 * - FunctionList:
 ******************************************************************************
 * History:
 *
 *
 *
 ******************************************************************************
 */

#pragma once
#include <string>
#include <map>
#include <lpc/LidarFrame.pb.h>

struct DispatchFileInfo
{
    int64_t timestamp;
    std::string fileName;
};

class DispatchFileReader
{
public:
    DispatchFileReader(const std::string &root,const int& id);
    ~DispatchFileReader();
    std::vector<DispatchFileInfo> getFileInfoList();
    std::shared_ptr<lpc::LidarProtoPointCloud> getDispatchFrame(const DispatchFileInfo& file);

private:
    int _id;
    std::string _root;
    const std::string TAG;
    std::vector<DispatchFileInfo> _dispatchFileList;
};
